package com.vueapi.controller.web;

import com.vueapi.domain.HjWebsite;
import com.vueapi.service.HjWebsiteService;
import com.vueapi.utils.ResultUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Classname AdminIndexController
 * @Description TODO
 * @Created by 赵宏建
 * @Date 2022/9/23 10:36
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/web/website")
public class WebWebsiteController {

    @Resource
    private HjWebsiteService websiteService;

    @GetMapping("/getWebsite")
    public ResultUtils getDataCount() {
        HjWebsite website = websiteService.getById(1);
        return ResultUtils.success(website);
    }

}
